Fix undefined reference to get_xkb()
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Thu, 23 Oct 2014 11:00:54 +0000 (13:00 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Mar 2015 23:42:27 +0000 (18:42 -0500)
When configuring Gtk+ with --disable-xkb, the build fails because of an
undefined reference to get_xkb().

This patch fixes this issue.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
https://bugzilla.gnome.org/show_bug.cgi?id=739070

gdk/x11/gdkkeys-x11.c

index a83ec150b18d1b67b23684988532012fdb8ea313..25df963f62e693bfb00017bc54870fc9c201ce91 100644 (file)
@@ -1499,8 +1499,10 @@ gdk_x11_keymap_map_virtual_modifiers (GdkKeymap       *keymap,
   int i, j;
   gboolean retval;
 
+#ifdef HAVE_XKB
   if (KEYMAP_USE_XKB (keymap))
     get_xkb (keymap_x11);
+#endif
 
   retval = TRUE;